package com.zzh.controller;

import com.zzh.domain.Test;
import com.zzh.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    private TestService testService;

    @RequestMapping("/findAllTest")
    public List<Test> findAllTest() {
        //http://localhost:8080/zzh_edu_ssm_web/test/findAllTest
        return testService.findAllTest();
    }
}
